<%-- 
    Document   : LihatBarangPusat_DariCabang
    Created on : 27-Nov-2013, 00:19:51
    Author     : TI USD
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="bean.LihatStokBarangPusat"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Lihat Barang Pusat</title>
    </head>
    <body bgcolor="purple"> 
    <center>
        <br><br><br><br><br><br><br><br><br>
        <table border="0" width="300">
            <tr>
                <td colspan="3" align="center"><img src="gambar/logo asmart.png" width="300" height="84"/></td>
            </tr>
            <tr>
                <td colspan="3" align="center">FORM LIHAT BARANG PUSAT</td>
            </tr>
            <tr>
                <td>
            <center>
                <table border="1">
                    <tr>
                        <td width="200" align="center" bgcolor="663300"><font color="white">KODE BARANG</font></td>
                        <td width="200" align="center" bgcolor="663300"><font color="white">NAMA BARANG</font></td>
                        <td width="200" align="center" bgcolor="663300"><font color="white">JUMLAH BARANG</font></td>
                    </tr>
                    <%
                        LihatStokBarangPusat cb = new LihatStokBarangPusat();
                        ResultSet res = cb.tampilStokPusat();
                        while (res.next()) {
                    %>
                    <tr>
                        <td align="center"><%=res.getString("KODEBARANG")%></td>
                        <td align="center"><%=res.getString("NAMABARANG")%></td>
                        <td align="center"><%=res.getString("JUMLAHBARANG")%></td>
                    </tr>
                    <% }%>
                </table>
            </center>
            </td>
            </tr>
            <tr>   
                <td align="center" colspan="3"><br><form action="PesanBarang.jsp"><input type="submit" value="KEMBALI KE PESAN BARANG" name="submit"></form></td>
            </tr>
        </table>
    </center>
</body>
</html>